﻿// Decompiled with JetBrains decompiler
// Type: Netick.IMemoryAllocator
// Assembly: Netick, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 6726ECA1-C773-4CF7-8952-E81B30D93B52
// Assembly location: D:\WorkSpaceDemo\UPM\NetickForUnity\Netick\Runtime\Netick.dll
// XML documentation location: D:\WorkSpaceDemo\UPM\NetickForUnity\Netick\Runtime\Netick.xml

using System.Runtime.CompilerServices;

#nullable disable
namespace Netick;

public interface IMemoryAllocator
{
  [MethodImpl(MethodImplOptions.AggressiveInlining)]
  unsafe void* Malloc(long size, int alignment = 8);

  [MethodImpl(MethodImplOptions.AggressiveInlining)]
  unsafe void Free(void* ptr);

  [MethodImpl(MethodImplOptions.AggressiveInlining)]
  unsafe void Clear(void* ptr, long sizeBytes);

  [MethodImpl(MethodImplOptions.AggressiveInlining)]
  unsafe void Copy(void* dest, void* source, long sizeBytes);

  [MethodImpl(MethodImplOptions.AggressiveInlining)]
  unsafe bool Cmp(void* ptr1, void* ptr2, long sizeBytes);
}
